package com.app.servlet.listence;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import org.apache.log4j.Logger;

public class SessionListence implements HttpSessionListener {

	
	public SessionListence()
	{
		logger.info("HttpSessionListener create");
	}
	
	static public Logger logger = Logger.getLogger(SessionListence.class);
	
	/**
	 * 用户登录记录用户数据
	 */
	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
		// TODO Auto-generated method stub
		logger.info("Session create...");
	
	}

	/**
	 * 用户登出销毁用户数据
	 */
	@Override
	public void sessionDestroyed(HttpSessionEvent arg0) {
		// TODO Auto-generated method stub
		logger.info("Session destory...");
	}

}
